<?php
namespace App\Exceptions;

use Symfony\Component\HttpKernel\Exception\HttpException;

class SocialAuthException extends HttpException
{
    protected $message = '第三方授权失败';
    protected $code = 'social.auth.fail';

    public function __construct()
    {
        parent::__construct(401, $this->message);
    }
}
